package cn.wolfcode.trip.base.service;

import cn.wolfcode.trip.base.domain.StrategyContent;
import cn.wolfcode.trip.base.domain.StrategyDetail;
import cn.wolfcode.trip.base.query.QueryObject;
import com.github.pagehelper.PageInfo;

public interface IStrategyDetailService {
    /**
     * 查询所有攻略细节
     * @param qo
     * @return
     */
    PageInfo<StrategyDetail> query(QueryObject qo);
    /**
     * 更新修改攻略细节
     * @param strategy
     */
    void saveOrUpdate(StrategyDetail strategy);

    /**
     * 根据细节id获取文章内容
     * @param id
     * @return
     */
    StrategyContent getStrategyContentById(Long id);

    /**
     * 根据细节id查询细节
     * @param id
     * @return
     */
    StrategyDetail getStrategyDetailById(Long id);
}
